package cn.itsource.hrm.doc;

import lombok.Data;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

/**
 * @author jinhui
 * @version V1.0.0
 * @date 2020/6/3
 */
@Data
@Document(indexName = "hrm")
public class CourseDoc {

    @Field(type = FieldType.Text,searchAnalyzer = "ik_max_word",analyzer ="ik_max_word" )
    private  String all;
    private Long id;
    private String name;
    private String users;
    private Long courseTypeId;
    private String gradeName;
    private Long grade;
    private Long tenantId;
    private String tenantName;
    private Long userId;
    private String userName;
    private Long endTime;
    private Long startTime;
    private String pic;

    /**
     * 收费规则，对应数据字典,免费，收费
     */
    private Long charge;

    /**
     * 有效性，对应数据字典
     */
    private Long valid;
    //过期时间
    private Long expires;

    /**
     * 咨询qq
     */
    private String qq;

    /**
     * 价格
     */
    private Double price;

    /**
     * 原价
     */
    private Double priceOld;

    private Long courseid;


}
